home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / FAQs / SGIfaqs / SGI-Apps-faq < prev    next >
Internet Message Format  |  1994-08-01  |  34KB

  1. Xref: odin comp.sys.sgi.misc:9156 comp.answers:4801 news.answers:20658
  2. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  3. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  4. Subject: SGI apps Frequently Asked Questions (FAQ)
  5. Supersedes: <apps_764182743@viz.tamu.edu>
  6. Followup-To: comp.sys.sgi.misc
  7. Date: 6 Apr 1994 20:11:33 GMT
  8. Organization: Visualization Lab, Texas A&M University
  9. Lines: 840
  10. Expires: 4 May 1994 20:11:14 GMT
  11. Reply-To: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  12. NNTP-Posting-Host: viz.tamu.edu
  13. Originator: sgi-faq@viz
  14.  
  15. Archive-name: sgi/faq/apps
  16. Last-modified: Wed Apr  6 15:10:31 CDT 1994
  17.  
  18.     SGI apps Frequently Asked Questions (FAQ)
  19.  
  20. This is one of the Silicon Graphics FAQ series, which consists of:
  21.  
  22.     SGI admin FAQ - IRIX system administration
  23.     SGI apps FAQ - Applications & compilers
  24.     SGI graphics FAQ - Graphics and user environment customization
  25.     SGI hardware FAQ - Hardware
  26.     SGI misc FAQ - Introduction & miscellaneous information
  27.     SGI performer FAQ - IRIS Performer
  28.     SGI pointer FAQ - Pointer to the other FAQs
  29.  
  30. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  31. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  32. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  33. can't find one of the FAQs with your news program, you can get it by
  34. anonymous FTP from one of these sites:
  35.  
  36.     rtfm.mit.edu:/pub/usenet/comp.sys.sgi.misc/
  37.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  38.     rtfm.mit.edu:/pub/usenet/comp.answers/sgi/faq/
  39.     viz.tamu.edu:/pub/sgi/faq/
  40.  
  41. Note that rtfm.mit.edu is home to many other FAQs and informational
  42. documents, and is a good place to look if you can't find an answer
  43. here. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with
  44. the command 'send usenet/news.answers/ftp-list/faq' on a line by itself
  45. in the text, and it will send you a document describing how to FTP by
  46. mail. You can also read a hypertext version of the FAQs at
  47.  
  48.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  49.  
  50. The SGI FAQs are freely distributable and wide circulation is encouraged.
  51. The contents are accurate as far as we know, but the usual disclaimers
  52. apply. Please send additions and changes to sgi-faq@viz.tamu.edu.
  53.  
  54. Topics covered in this FAQ:
  55. ---------------------------
  56. !  -1- Where can I find software for SGIs?
  57. +  -2- Where can I find software already compiled for SGIs?
  58.    -3- What about Explorer?
  59.    -4- WHAT TO USE?
  60.    -5- What's a good graphical text editor for SGIs?
  61. !  -6- What's a good graphical mail program for SGIs?
  62.    -7- How can I convert ASCII to PostScript?
  63.    -8- How can I preview PostScript?
  64.    -9- How can I edit PostScript files?
  65.   -10- How can I format unformatted manpages?
  66.   -11- IRIX's version of top(1) doesn't let me renice or kill processes
  67.        interactively. What to do?
  68.   -12- BUGS AND PROBLEMS
  69.   -13- Why isn't Iris Insight working properly?
  70.   -14- Why don't the arrow keys work in vi?
  71.   -15- How can I tell application X about my screen size?
  72.   -16- Why does ksh lock up if one's home directory is NFS-mounted?
  73.   -17- Why can't I 'talk' to Suns?
  74.   -18- PORTING
  75.   -19- Why can't I compile application X?
  76.   -20- Why doesn't application X understand NIS (Yellow Pages)?
  77.   -21- Where's 'ranlib'?
  78.   -22- How can I make the 'install' program work like BSD 'install'?
  79.   -23- Why does GNU Emacs not compile, or compile but not run?
  80.   -24- What do I need to do to build gcc/g++?
  81.   -25- COMPILERS AND PROGRAMMING
  82.   -26- What are the correct versions of the Irix Development Option
  83.        (IDO) and Fortran for current versions of IRIX?
  84.   -27- Where's edge in IRIX 5.x? What can I use instead?
  85.   -28- Can I use dynamic shared libraries in IRIX?
  86.   -29- How can I tell which shared objects my IRIX 5.x executable uses?
  87.   -30- How can I generate IRIX 4.0.x-compatible executables under IRIX
  88.        5.x?
  89.   -31- How can I convert IRIX 4.0.x executables to IRIX 5.x?
  90.   -32- How can I make IRIX malloc return null on failure?
  91.   -33- Where's CHILD_MAX?
  92. + -34- What prototypes are missing in IRIX 4.0.x and 5.x?
  93.   -35- Why are some static libraries missing in IRIX 5.x?
  94.   -36- Where are the audio, CD and DAT libraries in IRIX 5.x?
  95.  
  96. ----------------------------------------------------------------------
  97.  
  98. Subject: !  -1- Where can I find software for SGIs?
  99. Date: 03 Apr 94 00:00:01 EST
  100.  
  101. Silicon Graphics can tell you about their own and third-party
  102. commercial software.  Call SGI Direct for more information; see
  103. the misc FAQ for phone numbers.
  104.  
  105. The best general reference for finding sources on the Internet is
  106. Jonathan Kamens' "Finding Sources" document. It can be FTPed from
  107. rtfm.mit.edu:/pub/usenet/news.answers/finding-sources. Read it
  108. carefully before you post a question about finding software ...
  109. because half of your answers will be "look in Archie" anyway, and
  110. "Finding Sources" tells you how to do that.
  111.  
  112. Useful general archive sites include ftp.x.org:/contrib/ for X software
  113. (and X itself), prep.ai.mit.edu:/pub/gnu/ for GNU software, and
  114. ftp.uu.net:/ and wuarchive.wustl.edu:/ for nearly anything, including
  115. archives of many Usenet sources newsgroups and mirrors of the
  116. aforementioned GNU and X archives.
  117.  
  118. The best SGI-specific reference is Bill Henderson's
  119. <billh@hampton.sgi.com> SGI anonymous FTP list. (See "What are some
  120. related network documents?" in the misc FAQ.) Good places to look, if
  121. you just feel like looking, are ftp.sgi.com:/ and sgigate.sgi.com:/,
  122. where are kept any number of freebies from the folks at SGI, and
  123. swedishchef.lerc.nasa.gov:/, a site particularly well-stocked with
  124. SGI-related materials.
  125.  
  126. Finally, see the next question for places to find precompiled software
  127. and questions (in this and the other SGI FAQs) which discuss
  128. particular packages for pointers to those packages.
  129.  
  130. ------------------------------
  131.  
  132. Subject: +  -2- Where can I find software already compiled for SGIs?
  133. Date: 03 Apr 94 00:00:01 EST
  134.  
  135. A very large stash of SGI-compiled software is at
  136. ftp.uni-stuttgart.de:/sw; look in the sgi_40 directory for IRIX 4.0.x
  137. versions and the sgi_51 directory for IRIX 5.x versions.
  138.  
  139. David Hinds <dhinds@allegro.stanford.edu> keeps a stock of GNU
  140. software compiled for IRIX 4.0.x at cb-iris.stanford.edu:/pub/gnu/.
  141. Presently it includes recent versions of emacs, gcc, gnuplot, groff,
  142. gzip and perl.
  143.  
  144. Scott Henry <scotth@sgi.com> provides recent versions of GNU Emacs and
  145. gzip compiled for IRIX 4.0.x and (pay attention here) IRIX 5.x, in
  146. 'inst' form, in sgigate.sgi.com:/net-services/gnu-emacs.
  147.  
  148. If none of the above helps, check Bill Henderson's list.  Keep in mind
  149. that many of these binaries won't be the latest version, and it's worth
  150. checking the latest version to see if IRIX support has improved.  SGI's
  151. presence is increasing rapidly and the trend is definitely toward
  152. better IRIX support.
  153.  
  154. ------------------------------
  155.  
  156. Subject:    -3- What about Explorer?
  157. Date: 24 Feb 94 00:00:01 EST
  158.  
  159. The IRIS Explorer data visualization system has its own newsgroup,
  160. comp.graphics.explorer. There is an FTP site at
  161. ftp.epcc.ac.uk:/pub/explorer/ (with a North American mirror at
  162. swedishchef.lerc.nasa.gov:/explorer/), a WWW page at
  163. http://www.nag.co.uk:70/1h/Welcome_IEC and an FAQ which you can find
  164. at any of those sites.
  165.  
  166. ------------------------------
  167.  
  168. Subject:    -4- WHAT TO USE?
  169. Date: 10 Dec 93 00:00:01 EST
  170.  
  171. The next few questions discuss software for various applications.
  172.  
  173. ------------------------------
  174.  
  175. Subject:    -5- What's a good graphical text editor for SGIs?
  176. Date: 11 Mar 94 00:00:01 EST
  177.  
  178. The most popular graphic text editors on SGIs include:
  179.  
  180. zip (by Tom Davis of SGI) is something like jot but is orders of
  181. magnitude faster and laden with nifty features. It doesn't run well
  182. remotely or at all on X-terminals, text terminals or non-SGI machines,
  183. but if most of your editing will be at an SGI console, read no
  184. further!  You can FTP it from ftp.sgi.com:/graphics/zip/. If you're
  185. using IRIX 5.x, 'zip' has replaced 'jot' and you probably didn't even
  186. need to read this question.
  187.  
  188. nedit is a straightforward graphical editor with programmers' features.
  189. It needs X-windows but not GL. Get it from fnpspb.fnal.gov:/pub/nedit/.
  190. Patches to make it work under IRIX 5.x are at
  191. viz.tamu.edu:/pub/sgi/software/nedit/nedit-on-irix-5.x.patch.
  192.  
  193. GNU Emacs, a perennial favorite, isn't just an editor; it's a way of
  194. life.  It has a X-windows mode and works on X-windows terminals as well
  195. as SGI consoles and text terminals. Its X-windows support, once rather
  196. lackluster, has improved in the recently released version 19. It may be
  197. FTPed from any GNU archive, e.g. prep.ai.mit.edu:/pub/gnu/.
  198.  
  199. Epoch is a derivative of GNU Emacs 18 with better X-windows support. It
  200. may be found at cs.uiuc.edu:/pub/epoch-files/epoch/.
  201.  
  202. Lucid Emacs is a derivative of an early version of GNU Emacs 19. It may
  203. be found at lucid.com:/pub/lemacs/. It requires graphics.
  204.  
  205. Finally, the comp.windows.x FAQ (at
  206. rtfm.mit.edu:/pub/usenet/comp.windows.x/) lists many more editors which
  207. run under X-windows, both free and commercial.
  208.  
  209. ------------------------------
  210.  
  211. Subject: !  -6- What's a good graphical mail program for SGIs?
  212. Date: 03 Apr 94 00:00:01 EST
  213.  
  214. SGI ships 'xmh' but not 'mh' (which 'xmh' needs), and it looks nasty
  215. anyway. Here are some more popular choices:
  216.  
  217. The free programs Elm and Pine are not graphical, but they are
  218. screen-oriented (they use text-based menus), easy to use, powerful and
  219. can easily be run in a separate window. They can be configured to use
  220. 'metamail' for MIME support. (MIME, described in RFC1521, is a
  221. standard for enclosing multimedia material in your mail.) Elm can be
  222. FTPed from dsinc.dsi.com:/elm/, Pine from ftp.cac.washington.edu:/pine/
  223. and 'metamail' from thumper.bellcore.com:/pub/nsb/. Elm has an FAQ (at
  224. rtfm.mit.edu:/pub/usenet/comp.mail.elm). A package which makes Elm
  225. work nicely with IRIX 4.0.5x's WorkSpace is at
  226. neutron.chem.yale.edu:/pub/elm-ws-support.shar. Note that Elm's
  227. autoreply/arepdaemon subsystem has a bad security hole, so don't
  228. install those binaries. The rest of Elm is fine.
  229.  
  230. An IRIX-friendly version of 'xmailtool' is in
  231. crocus.medicine.rochester.edu:/pub/apps/.
  232.  
  233. Z-Mail is a commercial product written by Z-Code and redistributed by
  234. SGI. IRIX 5.x includes MediaMail, a subset of Z-Mail. Both are
  235. MIME-compatible and have a text-only mode.  The PostScript file
  236. viz.tamu.edu:/pub/sgi/software/mail/zmail-vs-mediamail.ps describes
  237. the differences between Z-Mail and MediaMail.  Z-Mail/MediaMail
  238. includes 'metamail', so if you use both Z-Mail/MediaMail and Elm or
  239. Pine or another free mail program, you can save yourself some trouble
  240. by configuring the latter to use the former's 'metamail'.
  241.  
  242. Finally, Chris Lewis' "Unix Email Software - a Survey" lists many mail
  243. programs, some of which are graphical. FTP it from
  244. rtfm.mit.edu:/pub/usenet/news.answers/mail/setup/unix.
  245.  
  246. ------------------------------
  247.  
  248. Subject:    -7- How can I convert ASCII to PostScript?
  249. Date: 06 Jan 94 00:00:01 EST
  250.  
  251. - IRIX 4.0.x includes 'lptops', which, because it's called indirectly
  252.   from 'lp', isn't as well known as it ought to be. Read the 'lptops'
  253.   and 'gpsinterface' manpages.
  254.  
  255. - Adobe Transcript, which includes 'enscript' (something like 'lptops')
  256.   and 'psroff' (nroff/troff-to-PostScript) is available at extra cost
  257.   from SGI.  Most people manage without it.
  258.  
  259. - SGI's own Impressario does PostScript and a lot of other things. It
  260.   too costs extra.
  261.  
  262. - Popular free converters include 'a2ps' (at
  263.   imag.fr:/archive/postscript/), 'lwf' (in volume 15 of
  264.   comp.sources.unix, e.g.
  265.   ftp.uu.net:/usenet/comp.sources.unix/volume15/lwf/) and 'psf' (in
  266.   volume 35 of comp.sources.misc, e.g.
  267.   ftp.uu.net:/usenet/comp.sources.misc/volume35/psf3/).  The
  268.   comp.lang.postscript FAQ (at
  269.   rtfm.mit.edu:/pub/usenet/comp.lang.postscript/) has a much longer
  270.   list of such programs, unfortunately no longer including reviews or
  271.   FTP sites.
  272.  
  273. - One good way to print manpages is with the '-m' option to 'a2ps'.
  274.  
  275. ------------------------------
  276.  
  277. Subject:    -8- How can I preview PostScript?
  278. Date: 20 Mar 94 00:00:01 EST
  279.  
  280. Display Postscript (DPS), which includes the 'xpsview' PostScript
  281. previewer, is an extra-cost option from SGI. Happily, Robert Keller of
  282. SGI <rck@fangio.asd.sgi.com> has made available GNU's GhostScript
  283. previewer, compiled *and* in SGI 'inst' installable form. FTP it from
  284. ftp.sgi.com:/sgi/ghost/.
  285.  
  286. Dale Atems <atems@physics.wayne.edu> points out:
  287. Many people try ghostscript and give it up because of the fonts.  There
  288. is something about ghostscript that's not as widely known as it should
  289. be and deserves emphasis: if you have SGI's Display Postscript, you can
  290. forget about most of the ugly bitmap fonts that come with ghostscript.
  291. Edit your Fontmap file to point ghostscript to the DPS outline fonts
  292. (in /usr/lib/DPS/outline/base) and it will use them instead. This will
  293. improve both screen display and, if you're not using a Postscript
  294. printer with those fonts already built in, printing quality.
  295.  
  296. ------------------------------
  297.  
  298. Subject:    -9- How can I edit PostScript files?
  299. Date: 07 May 93 00:00:01 EST
  300.  
  301. Ivan Bach <ib@sgi.com> collected some testimonials from a number of
  302. SGIers:
  303.  
  304. - Adobe Illustrator and Corel Draw can edit PS files of type AI (a
  305.   simplified version of PS that facilitates editing).
  306.  
  307. - Transverter (from TechPool, 212-291-1922) can convert some general
  308.   PostScript files to AI PostScript. It also does other conversions,
  309.   e.g.  to TIFF.
  310.  
  311. - If you have DPS extensions on your server and a DPS compile time
  312.   environment you can do this quite well with xfig. Check out the
  313.   version in crocus.medicine.rochester.edu:/pub/apps/.
  314.  
  315. - The InterViews tool `idraw' allows manipulation of EPS (Encapsulated
  316.   PostScript) files, and has a `mac-type' interface.
  317.  
  318. - Island Draw 3.0 has an option to import Postscript, and it seems to
  319.   accept arbitrary Postscript.  I have fed it single page Postcript
  320.   files from Illustrator, Corel, Ventura, Designer, Eroff, and
  321.   hand-coded files, and it made Island Draw objects out of them.  The
  322.   file initially opens as one grouped object, but if you ungroup, you
  323.   get editable objects.  I was quite impressed.  I don't doubt there
  324.   are ways to fool the interpreter, but it works for output from
  325.   drawing and publishing packages, which is what I need it for.
  326.  
  327. ------------------------------
  328.  
  329. Subject:   -10- How can I format unformatted manpages?
  330. Date: 07 May 93 00:00:01 EST
  331.  
  332. SGI provides manpages in formatted form, and does not therefore need to
  333. provide us all with the formatting software. Most FTPable software,
  334. however, comes with unformatted manpages.
  335.  
  336. Manpages are most often formatted with Documenter's Workbench (DWB),
  337. which SGI has had to license separately from USL and we have to buy
  338. separately from SGI.  SGI's DWB is based on version 2.1; the current
  339. version from USL is 3.3.
  340.  
  341. Public domain alternatives to DWB include 'groff' and 'awf':
  342.  
  343. 'groff' is by the Free Software Foundation and can be had from any GNU
  344. archive (e.g. prep.ai.mit.edu:/pub/gnu/).  Compilers beware: it must be
  345. compiled with g++ (or another C++ compiler?). However, there are
  346. compiled binaries in cb-iris.stanford.edu:/pub/gnu/.  David Hinds
  347. <dhinds@allegro.stanford.edu>, the man who put them there, gives this
  348. advice for installing groff so that it can format manpages on the fly:
  349.  
  350. Create a script called 'eqn':
  351.  
  352.  > #!/bin/sh
  353.  > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
  354.  > geqn $*
  355.  
  356. and a script called 'neqn':
  357.  
  358.  > #!/bin/sh
  359.  > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
  360.  > geqn -Tascii $*
  361.  
  362. and do:
  363.  
  364.  > ln -s gnroff nroff
  365.  
  366. and edit the end of the gnroff script to be:
  367.  
  368.  > rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  369.  > exec groff -Wall -mtty-char $T $opts $rest
  370.  
  371. To get PostScript output from 'man -t', you also need to create a
  372. 'psroff' script similar to 'nroff'.  Here are the context diffs:
  373.  
  374. *** /usr/local/bin/nroff        Sat Feb 13 15:51:09 1993
  375. --- /usr/local/bin/psroff       Sat Feb 13 17:45:46 1993
  376. ***************
  377. *** 1,8 ****
  378.   #!/bin/sh
  379. ! # Emulate nroff with groff.
  380.  
  381.   prog="$0"
  382. ! T=-Tascii
  383.   opts=
  384.  
  385.   for i
  386. --- 1,8 ----
  387.   #!/bin/sh
  388. ! # Emulate psroff with groff.
  389.  
  390.   prog="$0"
  391. ! T=-Tps
  392.   opts=
  393.  
  394.   for i
  395. ***************
  396. *** 25,30 ****
  397. --- 25,33 ----
  398.         -Tascii|-Tlatin1)
  399.                 T=$1
  400.                 ;;
  401. +       -t)
  402. +               # ignore -- default is send to stdout
  403. +               ;;
  404.         -T*)
  405.                 # ignore other devices
  406.                 ;;
  407. ***************
  408. *** 49,53 ****
  409.   rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  410.  
  411.   # This shell script is intended for use with man, so warnings are
  412.   # probably not wanted.  Also load nroff-style character definitions.
  413. ! exec groff -Wall -mtty-char $T $opts $rest
  414. --- 52,56 ----
  415.   rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  416.  
  417.   # This shell script is intended for use with man, so warnings are
  418. ! # probably not wanted.
  419. ! exec groff -Wall $T $opts $rest
  420.  
  421. The binaries on cb-iris.stanford.edu have these changes already made.
  422.  
  423. Henry Spencer's awf ("Amazingly Workable Formatter") is written in
  424. 'awk', which we all have, and does a pretty good job, considering. It
  425. can be FTPed from fresnel.stanford.edu:/pub/4D/.
  426.  
  427. Finally, you might be able to format them on a non-SGI machine which
  428. does have nroff. You might need to specify the generic printer macros
  429. with '-Tlp', i.e. 'nroff -man -Tlp foo.1 > foo'.
  430.  
  431. ------------------------------
  432.  
  433. Subject:   -11- IRIX's version of top(1) doesn't let me renice or kill
  434.                 processes interactively. What to do?
  435. Date: 10 Dec 93 00:00:01 EST
  436.  
  437. Try William LeFebvre's <phil@eecs.nwu.edu> version, which has these
  438. capabilities. FTP it from eecs.nwu.edu:/pub/top/. One port to IRIX is
  439. at ftp.cs.ruu.nl:/pub/SGI/top-3.1.tar.gz.
  440.  
  441. ------------------------------
  442.  
  443. Subject:   -12- BUGS AND PROBLEMS
  444. Date: 10 Dec 93 00:00:01 EST
  445.  
  446. This section discusses bugs and problems with various applications.
  447.  
  448. ------------------------------
  449.  
  450. Subject:   -13- Why isn't Iris Insight working properly?
  451. Date: 10 Dec 93 00:00:01 EST
  452.  
  453. Iris Insight 2.0 (which came on a CD included in the July/August
  454. Pipeline) uses a different format in the .insightrc file in your home
  455. directory. If there is an .insightrc left over from an older version
  456. when you run Insight 2.0, it may emit error messages or not work in
  457. various ways. Just delete the old .insightrc and restart Insight.
  458.  
  459. Greg Ferguson <gferg@hoop.timonium.sgi.com> keeps a list of other
  460. problems with Insight, which can be found at
  461. viz.tamu.edu:/pub/sgi/lists/insight-problems.
  462.  
  463. ------------------------------
  464.  
  465. Subject:   -14- Why don't the arrow keys work in vi?
  466. Date: 10 Dec 93 00:00:01 EST
  467.  
  468. Arrow keys send more than one character, and vi can misinterpret them
  469. as multiple single-character commands on slow connections. Increase
  470. vi's patience by putting the command 'set timeout=400' (or a larger or
  471. smaller number to your taste) in the file ~/.exrc or the EXINIT
  472. environment variable.  See also the ex(1) and vi(1) manpages.
  473.  
  474. Or use h, j, k and l. Or zip or Emacs.
  475.  
  476. ------------------------------
  477.  
  478. Subject:   -15- How can I tell application X about my screen size?
  479. Date: 10 Dec 93 00:00:01 EST
  480.  
  481. IRIX does not have 'stty rows n' or 'stty columns n'. Use 'setenv LINES
  482. n' and 'setenv COLUMS n' respectively.
  483.  
  484. ------------------------------
  485.  
  486. Subject:   -16- Why does ksh lock up if one's home directory is NFS-
  487.                 mounted?
  488. Date: 21 Jan 94 00:00:01 EST
  489.  
  490. Sez Dave Olson <olson@sgi.com>:
  491. Since all ksh sessions for the same user write to the same file, ksh
  492. uses locking on the history file.  Locking over NFS is problematic at
  493. best.  There is an environment variable (HISTFILE) that can be set to
  494. specify where the history file lives; I would suggest putting it
  495. somewhere on the local disk.
  496.  
  497. ------------------------------
  498.  
  499. Subject:   -17- Why can't I 'talk' to Suns?
  500. Date: 16 Mar 94 00:00:01 EST
  501.  
  502. SGI, and most Unix vendors, use the 4.3BSD talk protocol, while Sun
  503. still uses the 4.2BSD talk protocol. The fault is Sun's, not SGI's.
  504. Look in thor.ece.uc.edu:/pub/sun-faq/ for Sun-compatible versions of
  505. 'new talk' (ntalk.tar.Z) and 'ytalk', which speaks both old and new
  506. 'talk' (ytalk-3.0.1.tar.gz).
  507.  
  508. You could also run 'ytalk' on your SGI. Get it from
  509. ftp.uu.net:/usenet/comp.sources.unix/volume27/ytalk-3.0/.
  510.  
  511. ------------------------------
  512.  
  513. Subject:   -18- PORTING
  514. Date: 10 Dec 93 00:00:01 EST
  515.  
  516. This section discusses how to port 'found' software: usually free,
  517. written by someone else and probably not written explicitly for SGIs.
  518.  
  519. ------------------------------
  520.  
  521. Subject:   -19- Why can't I compile application X?
  522. Date: 12 Jan 94 00:00:01 EST
  523.  
  524. Plenty of reasons, but here are some of the most common:
  525.  
  526. - SGI's C compiler is ANSI C by default in IRIX 4.0.x. Use the '-cckr'
  527.   option to compile K&R C. You can do this most easily by setting the
  528.   environment variable SGI_CC to "-cckr" or by editing the
  529.   application's Makefile, often by adding "-cckr" to the CFLAGS
  530.   variable.
  531.  
  532. - A related problem is that Makefiles generated by 'imake' most often
  533.   use 'cc -cckr -prototypes'; missing or incorrect prototypes usually
  534.   just generate pages of warnings but may cause an unrecoverable error.
  535.   This can often be worked around by removing "-prototypes" from the
  536.   line where it appears in the Makefile (not the Imakefile).
  537.  
  538. - You need the libPW.a library, which contains the regcmp and regex
  539.   functions.  Add '-lPW' to your linking command.
  540.  
  541. - You're linking X libraries, which have complex interdependencies, in
  542.   the wrong order. Mark Kilgard <mjk@hoot.asd.sgi.com> provided this
  543.   handy chart:
  544.  
  545.  
  546.   libXm--libXirisw
  547.                   \
  548.                    libXt--libXmu--libgl--libXi--libXext--libX11
  549.                   /
  550.             libXaw
  551.  
  552.   Libraries should be listed in the same order on the cc or ld command
  553.   line, left to right, as they appear above. If you don't use routines
  554.   from a library, of course, you don't need it.
  555.  
  556. - Some header files were in both the dev.hdr.lib subsystem (which is
  557.   part of IDO) and eoe1.sw.unix (which is part of basic IRIX) in IRIX
  558.   4.0.5, but are not in dev.hdr.lib in IDO 4.1 and 4.1.1. If one
  559.   removes an older IDO then installs IDO 4.1(.1), these headers will
  560.   disappear.  The solution is to reinstall eoe1.sw.unix. Affected
  561.   headers are all in /usr/include/sys, and include domain.h, fddi.h,
  562.   if_imf.h, if_ipg.h, if_mf.h, if_sl.h, llc.h, mbuf.h, protosw.h,
  563.   smt.h, socket.h, socketvar.h, tcp-param.h, uio.h, un.h, and unpcb.h.
  564.  
  565. - There may be dependency lines in a Makefile which begin with spaces.
  566.   Some 'make's accept spaces; SGI's requires tabs.
  567.  
  568. - You may be running into one of the many popular bugs in IDO 4.1. See
  569.   "COMPILERS AND PROGRAMMING".
  570.  
  571. ------------------------------
  572.  
  573. Subject:   -20- Why doesn't application X understand NIS (Yellow Pages)?
  574. Date: 19 Dec 93 00:00:01 EST
  575.  
  576. If you run NIS (aka Yellow Pages), you need to link programs which
  577. access files served by NIS with -lsun. The functions in libc.a which
  578. deal with these files are not NIS-aware; the NIS versions are in
  579. libsun.a. Using libsun.a usually means adding '-lsun' to the variable
  580. LIBS or LDFLAGS in one's Makefile. If '-lc' or '-lc_s' (libc_s.a is
  581. the shared version of libc.a) is given explicitly, '-lsun' must precede
  582. it.
  583.  
  584. This is only true for IRIX 4.0.x; IRIX 5.x's libc.a is NIS-aware.
  585.  
  586. ------------------------------
  587.  
  588. Subject:   -21- Where's 'ranlib'?
  589. Date: 16 Sep 93 00:00:01 EST
  590.  
  591. IRIX doesn't need it. Read the description of the 's' option in the
  592. 'ar' manpage. When the Makefile for a program you're porting wants
  593. ranlib, substitute 'true' or put a little shell script in your PATH to
  594. fake it.
  595.  
  596. ------------------------------
  597.  
  598. Subject:   -22- How can I make the 'install' program work like BSD
  599.                 'install'?
  600. Date: 16 Jun 93 00:00:01 EST
  601.  
  602. The BSD and System V versions of the 'install' command are
  603. incompatible; the BSD version is most often used by Makefiles. IRIX
  604. provides both the System V version (/etc/install) and the BSD version
  605. (/usr/bin/X11/bsdinst.sh). SGI's 'imake' defines INSTALL as
  606. /usr/bin/X11/bsdinst.sh, and the Install* rules use that definition, so
  607. Imakefile-generated Makefiles will use the BSD version.
  608.  
  609. Michael Joosten <joost@ori.cadlab.de> points out that you can also use
  610. GNU install (available from any GNU archive, e.g.
  611. prep.ai.mit.edu:/pub/gnu/), which emulates the BSD version.  Unlike
  612. /usr/bin/X11/bsdinst.sh, it has a manpage.  It also may be better
  613. debugged; SGI's version reportedly mishandles '-o' and installs
  614. multiple files into a single directory.
  615.  
  616. ------------------------------
  617.  
  618. Subject:   -23- Why does GNU Emacs not compile, or compile but not run?
  619. Date: 20 Jan 94 00:00:01 EST
  620.  
  621. You probably have an old version.
  622.  
  623. Emacs 18.59 is the last release of Emacs version 18. It builds and runs
  624. correctly under IRIX 4.0.x. Some earlier versions failed to compile
  625. (because cc now needs -cckr for K&R C compatibility) or failed to run
  626. when stripped (because of object file format changes). For the latter
  627. reasion, the file unexmips.c in some versions of Epoch and Lucid Emacs
  628. should be replaced with the same-named file from the GNU Emacs 18.59
  629. distribution.
  630.  
  631. Karsten Kuenne <kuenne@desy.de> has patched Emacs 18.59 to work with
  632. IRIX 5.0's new object file format. The patches are at
  633. ftp.desy.de:/pub/gnu/emacs/emacs-irix5.0-patches.
  634.  
  635. Emacs 19.22 is the most recent release of Emacs version 19 at this
  636. writing; it builds and runs correctly under IRIX 4.0.x and 5.x with
  637. recent compilers (IDO 4.1.1 or newer). Be sure to read about Iris
  638. quirks in etc/MACHINES. You may need to say 'configure
  639. mips-sgi-irix5.1' instead of 'configure mips-sgi-irix5' to work around
  640. a small 'configure' bug. If you want to use dbx on Emacs 19.22, you
  641. need viz.tamu.edu:/pub/sgi/software/emacs/unexelfsgi.c.patch.
  642.  
  643. See also "Where can I get software already compiled for SGIs?" above.
  644.  
  645. ------------------------------
  646.  
  647. Subject:   -24- What do I need to do to build gcc/g++?
  648. Date: 12 Jan 94 00:00:01 EST
  649.  
  650. Recent versions of gcc build reliably on IRIX 4.0.x and 5.x without
  651. difficulty.  Just read the INSTALL document and follow the directions.
  652. A few hints:
  653.  
  654. - You need the headers and runtime libraries from SGI's extra-cost
  655.   development option both to compile and use gcc. (glibc does not yet
  656.   work on SGIs.) Of course if you buy the development option you'll get
  657.   SGI's compiler anyway; this is comp.sys.sgi.*'s most popular
  658.   Catch-22.
  659.  
  660. - Don't forget to install the dev.cmplrs_hdr.internal subsystem, which
  661.   contains needed headers and is not installed by default.
  662.  
  663. - You'll need up to 80Mb of free disk space. You can manage with as
  664.   little as 50Mb by compiling without "-g", stripping binaries and
  665.   pruning after each build stage.
  666.  
  667. _ If you are using IDO 4.1, use the 'mips-sgi-irix4loser'
  668.   configuration, which disables optimization to avoid an assembler bug,
  669.   or use the 'noasmopt' flag to gcc. This is not necessary with IDO
  670.   4.1.1.
  671.  
  672. - If you are using IDO 5.1, don't use GNU's binutils ('ar' and 'ld') to
  673.   build gcc. Use the IRIX versions.
  674.  
  675. - gcc's '-g' option (include debugging info) does not work on IRIX 5.x.
  676.   This is not a bug, but an absence of support. '-g' will work when
  677.   someone ports GNU's 'gas' to IRIX 5.x or explicitly writes ELF
  678.   support into gcc.
  679.  
  680. See also "Where can I get software already compiled for SGIs?" above.
  681.  
  682. ------------------------------
  683.  
  684. Subject:   -25- COMPILERS AND PROGRAMMING
  685. Date: 10 Dec 93 00:00:01 EST
  686.  
  687. This section discusses compilers and programming issues.  Check the
  688. graphics FAQ for graphics programming issues, and the Performer FAQ for
  689. Performer issues.
  690.  
  691. ------------------------------
  692.  
  693. Subject:   -26- What are the correct versions of the Irix Development
  694.                 Option (IDO) and Fortran for current versions of IRIX?
  695. Date: 15 Feb 94 00:00:01 EST
  696.  
  697. If you're using IRIX 4.0.x, you should be using IDO 4.1.1.  It includes
  698. C 3.10.1 and the 3.12 back-end (the part of the compiler which actually
  699. produces the executable; 3.12 is the number you see when you use the
  700. 'file' command on an executable). IDO 4.1 (C 3.10 and the 3.10
  701. back-end) was buggy; upgrade to 4.1.1 ASAP. IDO 4.0.1 (with the 2.40
  702. back-end) was the last stable release before IDO 4.1.x and is still
  703. acceptable. IRIX 5.1 requires IDO 5.1.
  704.  
  705. Each version of IDO has a corresponding version of Fortran, and they
  706. MUST be used together. IDO 4.1.1 needs Fortran 3.5.1 and IDO 5.1 needs
  707. Fortran 4.0.
  708.  
  709. ------------------------------
  710.  
  711. Subject:   -27- Where's edge in IRIX 5.x? What can I use instead?
  712. Date: 02 Feb 94 00:00:01 EST
  713.  
  714. SGI does not include edge with IRIX 5.x. When asked for substitutes,
  715. SGI will direct you to their CASEVision debugger, which costs extra.
  716. An oft-mentioned free graphical debugger is 'xdbx'; it can be FTPed
  717. from ftp.x.org and a patch to make it work on SGIs is at
  718. viz.tamu.edu:/pub/sgi/software/xdbx/xdbx.sgi.patch.
  719.  
  720. ------------------------------
  721.  
  722. Subject:   -28- Can I use dynamic shared libraries in IRIX?
  723. Date: 07 May 93 00:00:01 EST
  724.  
  725. IRIX 5.x supports SVR4-style dynamic shared libraries. IRIX 4.0.x does
  726. not, but Jack Jansen <jack@cwi.nl> has written a package to do it
  727. anyway. Get the file ftp.cwi.nl:/pub/dl-1.3.tar.Z by anonymous FTP.
  728.  
  729. ------------------------------
  730.  
  731. Subject:   -29- How can I tell which shared objects my IRIX 5.x
  732.                 executable uses?
  733. Date: 10 Dec 93 00:00:01 EST
  734.  
  735. Tom Weinstein <tomw@orac.esd.sgi.com> reveals the truth:  Use
  736. elfdump(1), which is in the dev.cmplrs_sw.util subsystem. The -Dl flag
  737. lists shared object dependencies, and there are other flags that do
  738. other things.
  739.  
  740. ------------------------------
  741.  
  742. Subject:   -30- How can I generate IRIX 4.0.x-compatible executables
  743.                 under IRIX 5.x?
  744. Date: 10 Dec 93 00:00:01 EST
  745.  
  746. Strictly speaking, you can't. Many things changed in IRIX 5.x. You can,
  747. however generate executables in COFF (IRIX 4.0.x) format instead of ELF
  748. (IRIX 5.x) format, and these will often work on IRIX 4.0.x if they
  749. don't use complex things like multiprocessing. The manual and release
  750. notes describe how, and here's a summary:
  751.  
  752. 1) Make sure you've installed all of the appropriate irix4
  753.    compatibility subsystems. These include irix4_eoe, irix4_dev,
  754.    irix4_c and others for Motif, Inventor, etc.
  755.  
  756. 2) setenv SGI_IRIX4 1
  757.  
  758. 3) If your source uses explicit paths to headers, libraries, etc.,
  759.    change them to point to the irix4 versions.
  760.  
  761. 4) Use cc or make or whatever as you normally would.
  762.  
  763. ------------------------------
  764.  
  765. Subject:   -31- How can I convert IRIX 4.0.x executables to IRIX 5.x?
  766. Date: 17 Jan 94 00:00:01 EST
  767.  
  768. Sez Jay McCauley <mccauley@sgi.com>:
  769. IRIX does not and cannot have a coff2elf (actually, it's 'cof2elf')
  770. converter.  The COFF (actually, ECOFF) to ELF transition was also the
  771. transition to the use of Expanded Fundamental Types (EFT), an
  772. SVR4-ism.  EFT enlarges a number of basic data types, finally casting
  773. off the last vestages of the PDP-11.  So, structures built in an EFT
  774. world would have their members at different offsets than they would in
  775. a pre-EFT (e.g. IRIX 4.x) world. The operating system uses the fact
  776. that an executable is in ELF to trigger the use of EFT-based strucures
  777. for input and output.  So, even if you had a program like coff2elf,
  778. the resulting transformed executable would not operate correctly for
  779. almost any interesting case.  Trivial programs that don't have any
  780. system calls which pass in structures or get structures back from the
  781. OS could theoretically work, but these fall into the "uninteresting"
  782. class.
  783.  
  784. ------------------------------
  785.  
  786. Subject:   -32- How can I make IRIX malloc return null on failure?
  787. Date: 23 Jan 94 00:00:01 EST
  788.  
  789. SGI's malloc(), by default, does not return NULL if there's not enough
  790. virtual memory around to allocate the requested space;  instead the
  791. program is killed if and when it touches an unavailable page. To make
  792. malloc() behave more conventionally -- to return NULL if the space is
  793. not available -- set the kernel variable availsmem_accounting (in
  794. /usr/sysgen/master.d/kernel, or via 'systune' in IRIX 5.x) to 1 and
  795. rebuild your kernel.
  796.  
  797. ------------------------------
  798.  
  799. Subject:   -33- Where's CHILD_MAX?
  800. Date: 21 Jan 94 00:00:01 EST
  801.  
  802. /usr/include/limits.h has a bug in all versions of IRIX 4.0.5. The
  803. definition of ARG_MAX on line 92 is missing a closing comment, so the
  804. definition of CHILD_MAX on line 93 is ignored. Line 92
  805.  
  806. #define    ARG_MAX        5120         /* max length of arguments to exec 
  807.  
  808. should look like this:
  809.  
  810. #define    ARG_MAX        5120         /* max length of arguments to exec */
  811.  
  812. ------------------------------
  813.  
  814. Subject: + -34- What prototypes are missing in IRIX 4.0.x and 5.x?
  815. Date: 03 Apr 94 00:00:01 EST
  816.  
  817. Kevin Russo <russo@rudedog.nrl.navy.mil> has compiled a list, which
  818. you can FTP from
  819. viz.tamu.edu:/pub/sgi/software/prototypes/missing-protos.shar.
  820.  
  821. ------------------------------
  822.  
  823. Subject:   -35- Why are some static libraries missing in IRIX 5.x?
  824. Date: 05 Feb 94 00:00:01 EST
  825.  
  826. IRIX 5.x does not have static (non-shared) versions of some libraries,
  827. notably libX11.a. This is only a problem if one needs to name one
  828. explicitly in a linking statement; just use the shared version (in this
  829. case, libX11.so.1).
  830.  
  831. But *why* are they missing? 1) The shared versions (but not the static
  832. versions) are specified in the MIPS ABI, with which IRIX 5.x complies.
  833. 2) SGI can tune system-dependent aspects of the libraries without
  834. losing binary compatibility between different SGI machines and with
  835. other MIPS ABI-compliant platforms. 2) The library interfaces are
  836. stable, so there is no need to link them statically. 3) It forces us
  837. all to use the shared versions with the attendant benefits: less disk
  838. and memory usage and better portability.
  839.  
  840. ------------------------------
  841.  
  842. Subject:   -36- Where are the audio, CD and DAT libraries in IRIX 5.x?
  843. Date: 05 Mar 94 00:00:01 EST
  844.  
  845. In IRIX 5.x, they (and the associated headers, sample code, etc.) have
  846. moved to the extra-cost Digital Media Development option. Sorry.
  847.  
  848. ------------------------------
  849.  
  850. End of sgi/faq/apps Digest
  851. ******************************
  852. -- 
  853. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  854. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  855.  
  856.